
# install polkit in chroot on any update to check for pam issues
pkgname=libtirpc
pkgver=1.0.3
pkgrel=1
pkgdesc="Transport Independent RPC library (SunRPC replacement)"
arch=('x86_64')
url="http://libtirpc.sourceforge.net/"
license=('BSD')
depends=('libgssglue')
backup=('etc/netconfig')
options=('!libtool')
source=("https://downloads.sourceforge.net/sourceforge/libtirpc/${pkgname}-${pkgver}.tar.bz2")
sha1sums=('48adb32dc7c3b73c66f001c239da76b8398abf11')

build() {
  cd ${pkgname}-${pkgver}
  # https://sourceforge.net/p/libtirpc/mailman/message/34594076/
  #patch -p1 -i ${srcdir}/rwlock_unlocks.patch
  
  ./configure --prefix=/usr --sysconf=/etc
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  
  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
